<!DOCTYPE html>
<html>
<head>
   <meta charset="UTF-8">
   <title>直播</title>
   <style>
     html, body, video {
      margin: 0;
      width: 100%;
      height: 100%;
      background: #333;
     }
   </style>
</head>
<body>
   <script src="src/flv.min.js"></script>
   <video id="videoElement" width="100%" controls></video>
   <script>
       if (flvjs.isSupported()) {
           var videoElement = document.getElementById('videoElement');
           var flvPlayer = flvjs.createPlayer({
               type: 'flv',
               url: 'http://localhost:8000/live/hello.flv'
           });
           flvPlayer.attachMediaElement(videoElement);
           flvPlayer.load();
           flvPlayer.play();
       }
   </script>
</body>
</html>

